#ifndef DATAGRAMTHREAD_H
#define DATAGRAMTHREAD_H

#include <QObject>
#include <QHostAddress>
#include <QUdpSocket>
#include <QDateTime>

class DatagramThread : public QObject
{
    Q_OBJECT
public:
    explicit DatagramThread(QObject *parent = nullptr);

public slots:
    void ReceiverDatagram(const QHostAddress &ipAddress,const quint16 &port);

public:
    void setConnStatus(bool flag);

private:
    bool m_bisConnect;
    QUdpSocket* m_UdpSocket;
};

#endif // DATAGRAMTHREAD_H
